package com.wlz.distributedlock.service;

import com.wlz.distributedlock.entity.Product;
import org.springframework.transaction.annotation.Transactional;

import java.util.UUID;
import java.util.concurrent.TimeUnit;


public interface OrderService {


    public void reduceStock(Integer id);


    /**
     * 模拟耗时业务处理
     *
     * @param wait
     */
    public void sleep(long wait);

}
